efc086aa6b956bc4598538d85464843198184350,src/main/java/org/spacehq/opennbt/NBTIO.java,NBTIO,writeTag,#DataOutputStream#Tag#,169
Before Change
* @throws java.io.IOException If an I/O error occurs.
*/
public static void writeTag(DataOutputStream out, Tag tag) throws IOException {
byte[] nameBytes = tag.getName().getBytes(CHARSET);
out.writeByte(TagRegistry.getIdFor(tag.getClass()));
out.writeShort(nameBytes.length);
out.write(nameBytes);
tag.write(out);
}
}
After Change
* @param tag Tag to write.
* @throws java.io.IOException If an I/O error occurs.
*/
public static void writeTag(DataOutputStream out, Tag tag) throws IOException {
out.writeByte(TagRegistry.getIdFor(tag.getClass()));
out.writeUTF(tag.getName());
tag.write(out);
}
}